package Utils;

import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.util.EntityUtils;

import java.util.HashMap;
import java.util.Map;

public class GgteHtml {
    public static String get(String rootHost,String rootPath) throws Exception {
        Map m1 = new HashMap();
        HttpResponse response1= HttpUtils.doGet(rootHost,rootPath,m1,m1);
        HttpEntity entity1 = response1.getEntity();
        String html= EntityUtils.toString(entity1,"UTF-8");
        EntityUtils.consume(entity1);
        return html;
    }
}
